﻿using System;
using System.Collections.Generic;
using System.Text;
using Mesuro.Common;
using System.Windows;
using Vector = Mesuro.Common.Vector;
using System.Windows.Media;

namespace Mesuro.Graphing.Utilities {
	public class CloudPlot  {

		public CloudPlot( ISeries series, PlotStyle style ) {
		}

		//protected override void DrawBackground( System.Windows.Media.DrawingContext cx ) {
		//    //Get _data enumerator
		//    IEnumerator<Vector> _data = PlotData.GetEnumerator();
		//    Vector offset = new Vector( -PlotData.Limits[0].Min, -PlotData.Limits[1].Min );
		//    Vector scale = new Vector( ActualWidth / PlotData.Limits[0].Range, ActualHeight / PlotData.Limits[1].Range );
		//    //move to first item
		//    _data.MoveNext();
		//    Geometry Marker = PlotStyle.Marker.Clone();
		//    Marker.transform = new ScaleTransform( PlotStyle.MarkerSize.value, PlotStyle.MarkerSize.value );
		//    Point old = (Point)Vector.PiecewiseMultiply( (_data.Current + offset), scale );
		//    RaisePreIterate();
		//    while (_data.MoveNext()) {
		//        Point nElements = (Point)Vector.PiecewiseMultiply( (_data.Current + offset), scale );
		//        //Draw Marker
		//        cx.PushTransform( new TranslateTransform( nElements.X, nElements.Y ) );
		//        cx.DrawGeometry( PlotStyle.MarkerFill, PlotStyle.MarkerOutline, Marker );
		//        cx.Pop();
		//        old = nElements;
		//        RaisePlotIterate( _data.Current );
		//    }
		//    RaisePostIterate();
		//}
	}
}
